package com.mingqijia.gassafety.job.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mingqijia.gassafety.db.entity.RecordDtu;
import com.mingqijia.gassafety.db.mapper.RecordDtuMapper;
import com.mingqijia.gassafety.job.service.RecordDtuService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 通讯模块上报数据 服务实现类
 * </p>
 *
 * @author guoliang.lao
 * @since 2022-08-03
 */
@Service
public class RecordDtuServiceImpl extends ServiceImpl<RecordDtuMapper, RecordDtu> implements RecordDtuService {

    @Override
    public List<RecordDtu> getListByRecordId(List<Long> list) {
        LambdaQueryWrapper<RecordDtu> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.in(RecordDtu::getRecordId,list);
        return this.list(queryWrapper);
    }
}
